pushd `dirname $0`
cd ..
rm -rf deployme
mkdir deployme
mv nixos.qcow2 deployme/nixos.qcow2
echo "[theserver]"                                              > deploy-addons/rclone.conf
echo "type = sftp"                                             >> deploy-addons/rclone.conf
echo "host = localhost"                                        >> deploy-addons/rclone.conf
echo "user = root"                                             >> deploy-addons/rclone.conf
echo "key_pem = "$(awk '{printf "%s\\n", $0}' < ssh/generated) >> deploy-addons/rclone.conf
cp -r ssh deployme/ssh
cp -r deploy-addons/* deployme
popd